package org.xinhe65045.springcloud.sample.foo.controller;

import org.rocky.lang.ApiResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sunxinhe
 */
@RestController
public class FooController {

    @RequestMapping("/foo")
    public ApiResult foo() {
        return ApiResult.builder()
                .code("SUCCESS")
                .message("foo")
                .build();
    }
}
